package com.zretc.entity;

import org.springframework.stereotype.Component;

@Component
public class OrderDetail {
    //订单详情id
    private String orderDetailId;
    //订单价格
    private String price;
    // 座位id
    private String seatId;
    //关联订单对象
    private Order order;
    //关联座位对象
    private Seat seat ;

    public OrderDetail() {
    }

    public OrderDetail(String orderDetailId, String price, Order order, Seat seat) {
        this.orderDetailId = orderDetailId;
        this.price = price;
        this.order = order;
        this.seat = seat;
    }

    public String getOrderDetailId() {
        return orderDetailId;
    }

    public void setOrderDetailId(String orderDetailId) {
        this.orderDetailId = orderDetailId;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public Seat getSeat() {
        return seat;
    }

    public void setSeat(Seat seat) {
        this.seat = seat;
    }

    public String getSeatId() {
        return seatId;
    }

    public void setSeatId(String seatId) {
        this.seatId = seatId;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
                "orderDetailId='" + orderDetailId + '\'' +
                ", price='" + price + '\'' +
                ", seatId='" + seatId + '\'' +
                ", order=" + order +
                ", seat=" + seat +
                '}';
    }
}
